package cn.bb.pojo;

import org.aspectj.lang.JoinPoint;

public class Logutil {
    public void before(JoinPoint jp){
        String methodname = jp.getSignature().getName();
        System.out.println(methodname+"欢迎购买");
    }
    public void afterReturn(JoinPoint jp){
        Object[] obj =  jp.getArgs();
        User u1 = (User)obj[0];

        System.out.println(u1.getUname());
        System.out.println("购物动作结束");
    }
}
